<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of class
 *
 * @author Андрей
 */
class testController extends AbstractModule {

    public function __construct() {
        parent::__construct();
        $this->setActiveComponent('navigation', 'leftblock');
        $this->setAllowedPaths(array(
            'index',
        ));
        $this->view = new testView();
    }
    public function index() {   
        $pagedata = array();
        $pagedata[] = array('data'=>$this->view->getTestString(), 'region'=>'content');
        $this->output($pagedata);
        return 0;
    }

    public function delete() {
        
    }

    public function install(){
        
    }
    
    //тестим хук 
    public function hook_beforepagebuild(&$data) {
     
          $data['content'][] = '<b>дополнение через hook_beforepagebuild от '.__CLASS__.'</b>';
    }

}
?>
